<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class UserAuth extends Model
{
    use HasDateTimeFormatter;
    protected $fillable = [
        'type',
        'user_id',
        'name',
        'sex',
        'idcard_reverse_photo',
        'idcard_front_photo',
        'audit_status',
        'reject_reason',
    ];

    protected $attributes =[
        'audit_status' => 1,
        'reject_reason' =>  ''
    ];

    public function user()
    {
        return $this->belongsTo(User::class,'user_id');
    }


}
